package com.c.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wangxiangli
 * @create 2022-12-31-12:57
 */
@Data
@TableName("t_sportitem")
@Accessors(chain = true)
public class SportItem implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;//主键id
    @TableField("code")
    private String code;//编号
    @TableField("name")
    private String name;//运动项目名
    @TableField("strength")
    private String strength;//强度
    @TableField("sport_time")
    private String sportTime;//运动时长
    @TableField("create_id")
    private Integer createId;//创建人
    @TableField("update_id")
    private Integer updateId;//修改人
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtCreate;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtModified;
}
